package com.jine.boot.core;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

@WebListener
public class MyHttpSessionListener implements HttpSessionListener {

    Logger logger = LoggerFactory.getLogger(this.getClass());

    @Override
    public void sessionCreated(HttpSessionEvent event) {
        logger.info("》》》》》》session created》》》》》》》》》");
    }

    @Override
    public void sessionDestroyed(HttpSessionEvent event) {
        logger.info("》》》》》》session destroyed》》》》》》》》》");
    }
}
